This online demo demonstrates the export to PDF feature of RadGrid. Thus you can transform the data from your web grid in
pdf file and make it 'understandable' among various pdf readers.
The approach is very straight-forward - to export the grid content to PDF format simply use the
ExportToPdf() RadGrid server-side method. You may also need to configure the exporting settings for the grid through the
RadGrid.ExportSettings section. The available properties are:
- FileName - a string specifying the name (without the extension) of the file that will be created. The file extension is automatically added based on the method that is used.
- ExportOnlyData - determines whether only data will be exported.
- IgnorePaging - specifies whether all records will be exported or merely those on the current page
- OpenInNewWindow - open the exported grid in a new instead of the same page
There is additional sub-category (Pdf) for the ExportSettings dedicated on various configuration settings
for the exported .pdf document. Below is a list of them:
- AllowAdd -
Boolean property which determines whether content adding is allowed
- AllowCopy -
Boolean property which determines whether content copying is allowed
- AllowModify -
Boolean property which determines whether content modifications are allowed
- AllowPrint -
Boolean property which determines whether the pdf document can be printed
- PageTitle -
Sets the title of the page
- PageLeftMargin -
Sets the left margin for the pages in the pdf document
- PageRightMargin -
Sets the right margin for the pages in the pdf document
- PageTopMargin -
Sets the top margin for the pages in the pdf document
- PageBottomMargin -
Sets the bottom margin for the pages in the pdf document
- PageHeaderMargin -
Sets the header margin for the pages in the pdf document
- PageFooterMargin -
Sets the footer margin for the pages in the pdf document
- PageHeight -
Sets the height of the pages in the pdf document
- PageWidth -
Sets the width of the pages in the pdf document
- Author -
Sets the name of the author of the pdf document
- Keywords -
Sets the keywords for the pdf document
- Subject -
Sets the subject of the pdf document
- Title -
Sets the title of the pdf document
- PaperSize -
Enumeration which specifies the paper font size.The default value is Letter
- Producer -
Specifies the producer of the resulting pdf document
- Creator -
Specifies the creator of the resulting pdf document
Further details about the exporting features of RadGrid you can find in the help topic linked below:
RadGrid export